<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<form action="y2.php" method="get">
	  <p>First name: <input type="text" name="fname[]" /></p>
	  <p>Last name: <input type="text" name="fname[]" /></p>
	  <input type="submit" value="Submit" />
	</form>
</body>
</html>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
// $("#btn").click(function () {
// 			document.SearchForm.action = 'http://127.0.0.1/ba/d.php';
// 			document.SearchForm.submit();
//         });
</script>